﻿namespace GoodDotNet.Core.Model
{
    public class PageParam
    {
        private int? pageIndex;
        private int? pageSize;
        /// <summary>
        /// 页码
        /// </summary>
        /// 
        public int PageIndex
        {
            get
            {
                return pageIndex ?? 1;
            }
            set
            {
                pageIndex = value;
            }
        }
        /// <summary>
        /// 页尺寸
        /// </summary>
        public int PageSize
        {
            get
            {
                return pageSize ?? 10;
            }
            set
            {
                pageSize = value;
            }
        }
    }
}
